var http = require('http')

http.createServer(function(request,response){
	console.log(request.url)
    //发送http头部
    //http状态码200
    //内容类型:text/plain
    response.writeHead(200,{'Content-Type':'text/plain'});
    
    //发送响应数据
    response.end('hello world!');
}).listen(8888)